package first

/**
 * @Description: TODO
 * @Author: DJJ
 * @Date: 2019/12/2 10:28
 */
object Test1 extends App {

  def test1(client: ClientMessage) = {
    val msgType = client.msgType
    msgType match {
      case 1 => println(s"实时消息:${client.msg}")
      case 2 => println(s"延时消息:${client.msg}")
      case _ => println("nothing")
    }
  }

  test1(ClientMessage("1223", "tttet", 1))
  test1(ClientMessage("1223", "ssoo", 2))

}
